package cz.cvut.manatee.shared.concordance;

import java.io.Serializable;

public class CollectedSimpleOrCqlParameters extends CollectedParameters implements Serializable {

	private static final long serialVersionUID = 1L;

	private boolean lemmatized;
	private boolean simple;
	private String cql;
	private String phrase;
	private String attribute;

	public CollectedSimpleOrCqlParameters(){
		
	}

	public CollectedSimpleOrCqlParameters(String cql, boolean lemmatized){
		this.simple = false;
		this.cql = cql;
		this.phrase = null;
		this.attribute = null;
		this.lemmatized = lemmatized;
	}

	public CollectedSimpleOrCqlParameters(String phrase, String attribut, boolean lemmatized){
		this.simple = true;
		this.cql = null;
		this.phrase = phrase;
		this.attribute = attribut;
		this.lemmatized = lemmatized;
	}

	public boolean isSimple(){
		return simple;
	}

	public String getCql(){
		return cql;
	}

	public String getPhrase(){
		return phrase;
	}

	public String getAttribute(){
		return attribute;
	}

	public boolean isLemmatized(){
		return lemmatized;
	}

}
